package com.shr.lease.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shr.lease.model.entity.ApartmentInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shr.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.shr.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.shr.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.shr.lease.web.admin.vo.apartment.ApartmentSubmitVo;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface ApartmentInfoService extends IService<ApartmentInfo> {
    /**
     *
     * @param page 分页信息
     * @param queryVo 查询条件；省份、市、县
     * @return 公寓信息
     */
    IPage<ApartmentItemVo> pageApartmentItemByQuery(IPage<ApartmentItemVo> page, ApartmentQueryVo queryVo);

    /**
     * @param id 公寓id
     * @return 公寓详细信息
     */
    ApartmentDetailVo getDetailById(Long id);

    /**
     * 保存或更心公寓详细信息
     * @param apartmentSubmitVo 公寓详细信息
     */
    void saveOrUpdateApartmentVo(ApartmentSubmitVo apartmentSubmitVo);

    /**
     * @param apartmentId 公寓id
     */
    void removeApartmentById(Long apartmentId);
}
